package com.cis467.mrball.parts;

public class Button extends Color{
	
	public int color;
	public Portal p1;
	public Portal p2;
	
	public Button (int x, int y){
		super(x,y);
		color = -1;
		p1 = null;
		p2 = null;
		isVisible = true;
	}
	
	public Button (int x, int y, int type){
		super(x,y,type);
		color = -1;
		p1 = null;
		p2 = null;
		isVisible = true;
	}
	
	public Button (int x, int y, int type, int pColor ){
		super(x,y,type);
		color = pColor;
		p1 = null;
		p2 = null;
		isVisible = true;
	}
	
	public Button (int x, int y, int type, int pColor, Portal p ){
		super(x,y,type);
		color = pColor;
		p1 = p;
		p2 = null;
		isVisible = true;
	}
	
	public Button (int x, int y, int type, int pColor, Portal p, Portal q ){
		super(x,y,type);
		color = pColor;
		p1 = p;
		p2 = q;
		isVisible = true;
	}
	
	public boolean isButton() {
		return true;
	}
	
	public String toString(){
		String str;
		str = super.toString();
		String p[] = str.split("><");
		str = p[0] + " color=\""+color+"\" f=\"b\"><"+p[1];
		return str;
	}
}
